aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/[username]/(profile)/+layout.server.ts
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2025-01-23 12:22:26 -0800
committerAdam Soltys <[email protected]>2025-01-23 12:22:26 -0800
commitb685dc5d29141087c991bf022970beb27c8c079f (patch)
tree768fb9d97068705191a7cc7ed9e0146babeb2b8f /src/routes/(app)/[username]/(profile)/+layout.server.ts
parenteaf9b3fa08282d89e3e40fefeccd83904185f8a2 (diff)
downloadcoinos-ui-b685dc5d29141087c991bf022970beb27c8c079f.tar.gz
coinos-ui-b685dc5d29141087c991bf022970beb27c8c079f.zip
follows
Diffstat (limited to 'src/routes/(app)/[username]/(profile)/+layout.server.ts')
-rw-r--r--src/routes/(app)/[username]/(profile)/+layout.server.ts16
1 files changed, 7 insertions, 9 deletions
diff --git a/src/routes/(app)/[username]/(profile)/+layout.server.ts b/src/routes/(app)/[username]/(profile)/+layout.server.ts
index 8600039e..d714ce76 100644
--- a/src/routes/(app)/[username]/(profile)/+layout.server.ts
+++ b/src/routes/(app)/[username]/(profile)/+layout.server.ts
@@ -7,17 +7,15 @@ export async function load({ depends, parent }) {
const rates = await getRates();
const { subject, user } = await parent();
- // const { follows, followers } = await get(`/${subject.pubkey}/count`);
+ const { follows, followers } = await get(`/${subject.pubkey}/count`);
let followList = new Promise((r) => r([]));
- // if (user)
- // followList = get(`/${user.pubkey}/follows?pubkeysOnly=true`).catch(
- // () => [],
- // );
- //
+ if (user)
+ followList = get(`/${user.pubkey}/follows?pubkeysOnly=true`).catch(
+ () => [],
+ );
- const follows = [];
- const followers = [];
- // const followList = [];
+ // const follows = [];
+ // const followers = [];
return { follows, followers, followList, rate: rates[subject.currency] };
}